/* Mail Karo - Instant PDF section */

#mk-instant-pdf {
  max-width: 1100px;
  margin: 50px auto;
  padding: 60px 40px;
  /* Increased padding for better header spacing */
  border-radius: 20px;
  text-align: center;
  /* Center the header content */

  /* Using global theme variables */
  background: var(--bg);
  /* Fallback */
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.03) 0%, var(--bg) 70%);
  border: 1px solid var(--border);
  color: var(--text);

  box-shadow: 0 0 22px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] #mk-instant-pdf {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, #ffffff 70%);
}

.mk-pdf-inner {
  display: flex;
  gap: 20px;
  /* Reduced gap from 28px for a more modern, compact feel */
  align-items: center;
}

@media (max-width: 860px) {
  .mk-pdf-inner {
    flex-direction: column;
    text-align: center;
  }

  .mk-pdf-right {
    order: -1;
  }
}

.mk-pdf-left {
  flex: 1;
}

.mk-pdf-right {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-floating-pdf {
  font-size: 62px;
  opacity: 0.15;
  color: var(--accent);
}

/* Title */
.mk-pdf-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  /* Tighter gap as requested */
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  position: relative;
  display: inline-block;
}

.mk-pdf-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background: var(--accent);
  bottom: -15px;
  left: 20%;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}

/* Description */
.mk-pdf-desc {
  margin: 0 0 18px 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Button Row */
.mk-pdf-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* PRIMARY BUTTON (Neon Yellow) */
.mk-pdf-btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;

  background: var(--accent);
  color: #000;

  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
  transition: 0.2s;
}

.mk-pdf-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
}

/* OUTLINE BUTTON */
.mk-pdf-btn.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.mk-pdf-btn.outline:hover {
  background: rgba(255, 215, 0, 0.12);
  transform: translateY(-3px);
}

/* Disable old animation */
/* Animation State: Hidden */
.mk-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* Animation State: Visible */
.mk-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.mk-pdf-desc.mk-anim {
  transition-delay: 0.1s;
}

#mkPdfDownloadBtn.mk-anim {
  transition-delay: 0.2s;
}

#mkPdfPreviewBtn.mk-anim {
  transition-delay: 0.3s;
}

.mk-pdf-right.mk-anim {
  transition-delay: 0.4s;
}

/* responsive */
@media (max-width: 520px) {
  #mk-instant-pdf {
    padding: 22px;
  }

  .mk-pdf-title {
    font-size: 2.2rem;
  }

  .mk-pdf-desc {
    font-size: 14px;
  }
}

.mk-floating-pdf {
  opacity: 0.22;
  color: var(--accent);
  animation: mkFloat 4s ease-in-out infinite;
}

/* Light mode — make it grey (visible on white) */
.light .mk-floating-pdf {
  color: #000 !important;
  opacity: 0.75 !important;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}